package com.ruoyi.stock.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 库存对象 t_inventory
 *
 * @author ruoyi
 * @date 2024-10-29
 */
@Data
public class StockInventory extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 所属仓库id
     */
    @Excel(name = "所属仓库id")
    private Long warehouseId;

    /**
     * 物品编号
     */
    @Excel(name = "物品编号")
    private String goodsNo;

    /**
     * 物品类型
     */
    @Excel(name = "物品类型")
    private String goodsType;

    /**
     * 当前库存数量
     */
    @Excel(name = "当前库存数量")
    private Long quantity;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime createdTime;

    /**
     * 提交人id
     */
    @Excel(name = "提交人id")
    private Long creatorId;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "提交时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime submissionTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime updatedTime;
}
